import hashlib

str1 = input('input passwd:')
ret = hashlib.md5(str1.encode('utf-8')).hexdigest()
with open('passwd.txt', 'w', encoding='utf-8') as f:
    f.write(ret)
print(ret)
